package com.water.wfo.component.api.enums;

/**
 * packageName com.water.wfo.component.api.enums
 *
 * @author junhuili
 * @version JDK 8
 * @date 2024/5/18
 * @description TODO
 */
public enum StatusCodeEnum implements ErrorEnum{
    SUCCESS("S0000000000", "成功"),
    SYSTEM_ERROR("E011100000", "系统错误"),
    SERVER_ERROR("E011100001", "服务异常"),
    UNKNOW_ERROR("E011100002", "未知错误"),
    NO_PERMISSION("E011200100", "权限不足"),
    AUTH_ERROR("E011200101", "认证失败"),
    PARAMS_ERROR("E011200102", "参数错误"),
    JSON_PARSE_ERROR("E011200103", "JSON解析失败"),
    ILLEAGAL_STRING("E011200104", "非法字符串"),
    MQ_SEND_ERROR("E011200300", "消息发送异常"),
    MQ_MESSAGE_ERROR("E011200301", "消息体错误"),
    MQ_FLUSH_DISK_TIMEOUT("E011200302","refresh disk timeout"),
    MQ_FLUSH_SLAVE_TIMEOUT("E011200303","refresh slave timeout"),
    MQ_SLAVE_NOT_AVAILABLE("E011200304","slave not available");

    private String errCode;

    private String errMsg;

    StatusCodeEnum(String errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
    @Override
    public String getErrCode() {
        return null;
    }

    @Override
    public String getErrMsg() {
        return null;
    }
}
